This resource address can be used to restart or shutdown a group in the cluster.
URL Parameters | |
---|---|
format | The format of the posted data. Can be either
html , json , or xml (default). This value overrides
the Accept header if both are present. |
Upon success, MarkLogic Server returns status code 202 (Accepted). If the payload is malformed, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
The structure of the data in the request is as follows:
To restart a group:
{"operation": "restart-group"}
To shutdown a group:
{"operation": "shutdown-group"}
curl -X POST --digest -u admin:admin -H "Content-type: application/json" \ -d '{"operation": "shutdown-group"}' http://localhost:8002/manage/v2/groups/Foo ==> Shuts down the "Foo" group in the cluster.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.